#include<iostream>



using namespace std;
int main() {
	int x, max;
	cin >> x;
	max = x;
	for (int i = 0; i <9; i++)
	{
		cin >> x;
		if (x > max) {
			max = x;
		}
	}
	cout << max << endl;



	return 0;
}